home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Talker / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  2.0 KB  |  69 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWDRGDRP_H
  10. #include "FWDrgDrp.h"        // FW_MDroppableFrame
  11. #endif
  12.  
  13.  
  14. #ifndef FWFRAME_H
  15. #include <FWFrame.h>        // FW_CFrame
  16. #endif
  17.  
  18. #ifndef FWRECT_H
  19. #include <FWRect.h>            // FW_CRect
  20. #endif
  21.  
  22. //=======================================================================
  23. class CTalkerContent;
  24. class FW_CPictureShape; 
  25.  
  26. //=======================================================================
  27. class CTalkerFrame : public FW_CFrame, public FW_MDroppableFrame {
  28. public:
  29.     FW_DECLARE_AUTO(CTalkerFrame)
  30.     
  31. public:
  32.                         CTalkerFrame(Environment* ev, 
  33.                                     ODFrame* odFrame, 
  34.                                     FW_CPresentation* presentation, 
  35.                                     CTalkerContent* content);
  36.     virtual             ~CTalkerFrame();
  37. protected:
  38. // overrides
  39.     virtual FW_CDropCommand*     NewDropCommand(Environment *ev, 
  40.                                             FW_CFrame* frame,
  41.                                             ODDragItemIterator* dropInfo, 
  42.                                             ODFacet* facet, 
  43.                                             const FW_CPoint& dropPoint);
  44.     virtual FW_CClipboardCommand*     NewClipboardCommand(Environment* ev, 
  45.                                                 ODCommandID commandID);
  46.     virtual void        Draw(Environment *ev, 
  47.                              ODFacet* odFacet, 
  48.                              ODShape* invalidShape);
  49.     virtual void        FrameShapeChanged(Environment* ev);
  50.     virtual FW_Handled    DoAdjustMenus(Environment* ev,
  51.                                       FW_CMenuBar* menuBar, 
  52.                                       FW_Boolean hasMenuFocus,
  53.                                       FW_Boolean isRoot);
  54.     virtual FW_Handled    DoMenu(Environment* ev,
  55.                                const FW_CMenuEvent& theMenuEvent);
  56.     virtual FW_Handled     DoMouseDown(Environment* ev, 
  57.                                 const FW_CMouseEvent& theMouseEvent);
  58. // new members
  59. protected:
  60.     virtual void         MyInitPicture(Environment* ev);
  61. private:
  62.     CTalkerContent*     fTalkerContent;
  63.     FW_CRect             fFrameRect;
  64.     FW_CPictureShape*    fPictShape;            // Mr. Pizza
  65. };
  66.  
  67. //=======================================================================
  68. #endif
  69.